home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Graphics⁄Sound / Speech / speech.h < prev    next >
Encoding:
Text File  |  1985-09-03  |  1.7 KB  |  62 lines  |  [TEXT/MACA]

  1. /* Written 12:33 am  Aug  6, 1985 by ALAN@NCSUVM.BITNET in uiucdcsc:net.sources.mac */
  2. /* ---------- "SPEECH.H (part 2/2 of C interface f" ---------- */
  3.  
  4. This is the header file for use with SPEECH.C
  5.  
  6. Posted with permission by Alan Clegg, ALAN@NCSUVM.BITNET
  7.                     for   Michael Hecht.
  8.  
  9. Respond to ALAN@NCSUVM.BITNET
  10.  
  11. ------------------------------------Cut Here-----------------------------------
  12.  
  13.  #ifndef _TYPES
  14.  #include <types.h>
  15.  #endif
  16.  
  17.  #define noExcpsFile     ""
  18.  #define noReader        "\PnoReader"
  19.  #define fullUnitT       -4000
  20.  
  21.  typedef int             SpeechErr;
  22.  typedef Byte            SpeechRecord[100];
  23.  typedef SpeechRecord *  SpeechPointer;
  24.  typedef SpeechPointer * SpeechHandle;
  25.  
  26.  typedef Byte            Sex;
  27.  #define Male            0
  28.  #define Female          1
  29.  
  30.  typedef Byte            FOMode;
  31.  #define Natural         0
  32.  #define Robotic         1
  33.  #define NoChange        2
  34.  
  35.  typedef Byte            Language;
  36.  #define xEnglish        0
  37.  #define French          1
  38.  #define Spanish         2
  39.  #define German          3
  40.  #define Italian         4
  41.  
  42.  struct VoiceRecord {
  43.          Sex             theSex;
  44.          Language        theLanguage;
  45.          int             theRate;
  46.          int             thePitch;
  47.          FOMode          theMode;
  48.          Str255          theName;
  49.          long            refCon;
  50.  };
  51.  typedef struct VoiceRecord      VoiceRecord;
  52.  typedef VoiceRecord *           VoicePtr;
  53.  
  54.  SpeechErr               SpeechOn();
  55.  void                    SpeechOff();
  56.  void                    SpeechRate();
  57.  void                    SpeechPitch();
  58.  void                    SpeechSex();
  59.  SpeechErr               Reader();
  60.  SpeechErr               MacinTalk();
  61. /* End of text from uiucdcsc:net.sources.mac */
  62.